
{extend name="index/admin-index" /}
{block name="main"}


  <!-- content start -->
   
  <div class="admin-content">
    <div class="admin-content-body">
      <div class="am-cf am-padding am-padding-bottom-0">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">{$list.name}</strong> / <small>Article</small></div>
      </div>

      <hr>

      <div class="am-g">
        
        <div class="am-u-sm-12 am-u-md-3">
         
        </div>
        <div class="am-u-sm-12 am-u-md-3">
        <form action="{:url('category/select',['sid'=>input('sid')])}" method='post'>
          <div class="am-input-group am-input-group-sm">
            <input type="text" class="am-form-field" name="select">
          <span class="am-input-group-btn">
            <button class="am-btn am-btn-default"  type="submit">搜索</button>
          </span>
          </div>
        </form>
        </div>
      </div>


      
      <div class="am-g">
        <div class="am-u-sm-12">
          <form class="am-form">
            <table class="am-table am-table-striped am-table-hover table-main">
              <thead>
              <tr>
               <th class="table-id">ID</th><th class="table-title">标题</th><th class="table-author am-hide-sm-only">作者</th><th class="table-date am-hide-sm-only">发表日期</th><th class="table-set">操作</th>
              </tr>
              </thead>
              <tbody id='list'>
              {volist name='data' id="vo"}
              <tr>
                <div class="modal fade" id="myModal{$i}" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" >
                          <div class="modal-dialog" role="document" style="margin-top:80px">
                            <div class="modal-content">
                              <div class="modal-header">
                                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                                <h4 class="modal-title" id="myModalLabel">消息提醒</h4>
                              </div>
                              <div class="modal-body">
                               你确定要删除?
                              </div>
                              <div class="modal-footer">
                                <button type="button" class="btn btn-default"><a href="{:url('Category/del',['art_id'=>$vo.id])}">确定</a></button>
                                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                              </div>
                            </div>
                          </div>
                        </div>
               
                <td>{$i}</td>
                <td>{$vo.title}</td>
                <td class="am-hide-sm-only">{$vo.author}</td>
                <td class="am-hide-sm-only">{$vo.pubdate|date="Y-m-d H:i:s",###}</td>
                <td>
                  <div class="am-btn-toolbar">
                    <div class="am-btn-group am-btn-group-xs">
                      
                       <button class="am-btn am-btn-default am-btn-xs am-btn-xs am-hide-sm-only"><a href="{:url('Category/content',['art_id'=>$vo.id])}" target="_blank">查看</a></button>
                        <!-- Modal -->
                         <button type="button" id="bot"  class="am-btn am-btn-default am-hide-sm-only am-text-danger " data-toggle="modal" data-target="#myModal{$i}"><span class="am-icon-trash-o"></span>
                      <!--  -->删除<!-- </a --></button>
          

                        

                     
                    </div>
                  </div>
                </td>
              </tr>
              {/volist}
              </tbody>
            </table>
            <div class="am-cf">
              共 {$i} 条记录
              <div class="am-fr">
                {$page}
              </div>
              
           
            </div>
            <hr />
            <p>注：.....</p>
          </form>
        </div>

      </div>
    </div>
     
    <footer class="admin-content-footer">
      <hr>
      <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
    </footer>

  </div>
  <!-- content end -->
</div>

<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>




 \

{/block}
